package xuanke;

import java.util.Scanner;

public class Students {
    Scanner input = new Scanner(System.in);
    public int number;
    public String name;
    public String sex;
    public Lessons[] lessons;

    public Students(int number, String name, String string, Lessons[] lessons) {
        this.number = number;
        this.name = name;
        this.lessons = lessons;
    }

    public void ChoiceLessons(Students student, int n, Lessons lessons1) {
        student.lessons[n] = lessons1;
        System.out.println(student.name + "选择" + student.lessons[n].lessons + "课程成功");
    }

    public void OutLessons(Students student, int n) {
        System.out.println(student.name + "退选" + student.lessons[n].lessons + "课程成功");
        student.lessons[n] = null;
    }
}
